package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 供应商
 * </p>
 *
 * @author LEO
 * @since 2020-09-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_supplier")
@ApiModel(value="Supplier对象", description="供应商")
public class Supplier extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "全局code")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "供应商编码")
    @TableField("supplier_code")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "联系人")
    @TableField("contacts")
    private String contacts;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "信用代码")
    @TableField("business_license_img_number")
    private String businessLicenseImgNumber;

    @ApiModelProperty(value = "法人")
    @TableField("legal_person")
    private String legalPerson;

    @ApiModelProperty(value = "身份证号")
    @TableField("identification_number")
    private String identificationNumber;

    @ApiModelProperty(value = "税点")
    @TableField("tax_point")
    private BigDecimal taxPoint;

    @ApiModelProperty(value = "国家")
    @TableField("country")
    private String country;

    @ApiModelProperty(value = "省")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "县/区")
    @TableField("county")
    private String county;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    /**
     * 状态：0未审核，1：审核通过，2：审核未通过
     */
    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;


    @ApiModelProperty(value = "是否结算：0不结算，1结算")
    @TableField(value = "is_settlement")
    private Integer isSettlement;

    @ApiModelProperty(value = "所属机构")
    @TableField(value = "group_code")
    private String groupCode;

}
